package com.topvision.common.security;


import com.topvision.common.enumeration.BaseEnum;

/**
 * @author shengwm
 * @version V0.0.1
 * @Title: SecurityErrorPrompt
 * @Package com.yonghui.security.config
 * @Description: TODO
 * @date 2017/6/17
 */
public enum SecurityErrorPrompt implements BaseEnum {

    SEED_MICRO_SECURITY_STATUS_10001("10001", "用户账号不存在！"),
    SEED_MICRO_SECURITY_STATUS_10002("10002", "用户信息不存在！"),
    SEED_MICRO_SECURITY_STATUS_10003("10003", "用户名或密码错误！"),
    SEED_MICRO_SECURITY_STATUS_10004("10004", "离职用户不可登录！"),
    SEED_MICRO_SECURITY_STATUS_10005("10005", "用户没有授权任何权限，请联系管理员！");

    private final String value;
    private final String label;

    SecurityErrorPrompt(String value, String label) {
        this.value = value;
        this.label = label;
    }

    /**
     * 获取值
     *
     * @return
     */
    @Override
    public String getValue() {
        return value;
    }

    /**
     * 获取标签
     *
     * @return
     */
    @Override
    public String getLabel() {
        return label;
    }
}
